import { EquipmentService } from './../services/equipment';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'ree-warning',
  templateUrl: './warning.component.html',
  styleUrls: ['./warning.component.scss']
})
export class WarningComponent implements OnInit {

  PramsRange = [];

  objectKeys = Object.keys;
  constructor(private equipmentService: EquipmentService) { }

  ngOnInit() {
    this.getPramsRange();
  }

  private getPramsRange() {
    this.equipmentService.getPramsRange().then(data => { this.PramsRange = data;})
  }
}
